package com.ruoyi.fitment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fitment.mapper.FitmentMapper;
import com.ruoyi.fitment.domain.Fitment;
import com.ruoyi.fitment.service.IFitmentService;

/**
 * 装修类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-12
 */
@Service
public class FitmentServiceImpl implements IFitmentService 
{
    @Autowired
    private FitmentMapper fitmentMapper;

    /**
     * 查询装修类型
     * 
     * @param id 装修类型主键
     * @return 装修类型
     */
    @Override
    public Fitment selectFitmentById(Long id)
    {
        return fitmentMapper.selectFitmentById(id);
    }

    /**
     * 查询装修类型列表
     * 
     * @param fitment 装修类型
     * @return 装修类型
     */
    @Override
    public List<Fitment> selectFitmentList(Fitment fitment)
    {
        return fitmentMapper.selectFitmentList(fitment);
    }

    /**
     * 新增装修类型
     * 
     * @param fitment 装修类型
     * @return 结果
     */
    @Override
    public int insertFitment(Fitment fitment)
    {
        return fitmentMapper.insertFitment(fitment);
    }

    /**
     * 修改装修类型
     * 
     * @param fitment 装修类型
     * @return 结果
     */
    @Override
    public int updateFitment(Fitment fitment)
    {
        return fitmentMapper.updateFitment(fitment);
    }

    /**
     * 批量删除装修类型
     * 
     * @param ids 需要删除的装修类型主键
     * @return 结果
     */
    @Override
    public int deleteFitmentByIds(Long[] ids)
    {
        return fitmentMapper.deleteFitmentByIds(ids);
    }

    /**
     * 删除装修类型信息
     * 
     * @param id 装修类型主键
     * @return 结果
     */
    @Override
    public int deleteFitmentById(Long id)
    {
        return fitmentMapper.deleteFitmentById(id);
    }
}
